package com.wzdigit.wms.raw.mapper.asn.report;

import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.raw.client.request.asn.report.ortherasn.OrtherAsnRequest;
import com.wzdigit.wms.raw.client.response.asn.report.ortherasn.OrtherAsnDtlGoodsResponse;
import com.wzdigit.wms.raw.client.response.asn.report.ortherasn.OrtherAsnDtlResponse;
import com.wzdigit.wms.raw.client.response.asn.report.ortherasn.OrtherAsnResponse;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 其他入库单Mapper
 * Created by zyf on 2021/6/9 8:40
 */
@MyBatisRepository
public interface OrtherAsnMapper {
    List<OrtherAsnResponse> selectAllHeader(@Param("asnRequest") OrtherAsnRequest ortherAsnRequest,
                                            @Param("asnTypeList") List<String> asnTypeList);

    List<OrtherAsnDtlResponse> selectAllDtl(@Param("asnHeaderIds") List<BigDecimal> asnHeaderIds);

    List<BigDecimal> selectDtlIdByHeader(@Param("asnHeaderIds") List<BigDecimal> asnHeaderIds);

    Integer selectIqcResult(@Param("inspNo") String inspNo);

    List<OrtherAsnDtlGoodsResponse> selectDtlGoodsByDtlIds(@Param("dtlIds") List<BigDecimal> dtlIds);
}
